package com.ccw.dynamic.impl;

import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;

public class SuperMethodInfo {
	
	private String methodName;
	
	private List<String> lines = new ArrayList<String>();
	
	private String returnType = "void";
	
	private List<SuperParameterInfo> parameterTypes = new ArrayList<SuperParameterInfo>();
	
	private List<String> exceptionTypes = new ArrayList<String>();
	
	private int methodType = Modifier.PUBLIC;

	public String getReturnType() {
		return returnType;
	}

	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}

	public List<SuperParameterInfo> getParameterTypes() {
		return parameterTypes;
	}

	public void addParameterType(SuperParameterInfo superParameter) {
		this.parameterTypes.add(superParameter);
	}

	public List<String> getExceptionTypes() {
		return exceptionTypes;
	}

	public void addExceptionType(String exceptionType) {
		this.exceptionTypes.add(exceptionType);
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public List<String> getLines() {
		return lines;
	}

	public void addLine(String line) {
		this.lines.add(line);
	}

	public int getMethodType() {
		return methodType;
	}

	public void setMethodType(int methodType) {
		this.methodType = methodType;
	}
	
}
